import request from '@/utils/request'

// 查询IC卡备案管理列表
export function listIcCardRecord(query) {
  return request({
    url: '/billsdecl/icCardRecord/list',
    method: 'get',
    params: query
  })
}
export function findCardListByCardNo(cardNo) {
  return request({
    url: '/billsdecl/icCardRecord/findList/'+cardNo,
    method: 'get'
  })
}

// 查询IC卡备案管理详细
export function getIcCardRecord(id) {
  return request({
    url: '/billsdecl/icCardRecord/getInfo/' + id,
    method: 'get'
  })
}

// 新增IC卡备案管理
export function addIcCardRecord(data) {
  return request({
    url: '/billsdecl/icCardRecord/add',
    method: 'post',
    data: data
  })
}

// 修改IC卡备案管理
export function updateIcCardRecord(data) {
  return request({
    url: '/billsdecl/icCardRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除IC卡备案管理
export function delIcCardRecord(id) {
  return request({
    url: '/billsdecl/icCardRecord/remove/' + id,
    method: 'get'
  })
}

// 导出IC卡备案管理
export function exportIcCardRecord(query) {
  return request({
    url: '/billsdecl/icCardRecord/export',
    method: 'get',
    params: query
  })
}
